package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 教师信息表
 *
 * @TableName teacher
 */
@TableName(value = "teacher")
@Data
public class Teacher implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 教师ID
     */
    @TableId(value = "teacher_id", type = IdType.AUTO)
    private Long teacherId;
    /**
     * 关联的用户ID
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 教龄
     */
    @TableField(value = "teaching_age")
    private Integer teachingAge;
    /**
     * 擅长科目
     */
    @TableField(value = "subject_area")
    private String subjectArea;
    /**
     * 教学风格
     */
    @TableField(value = "teaching_style")
    private String teachingStyle;
    /**
     * 教师资格证
     */
    @TableField(value = "certification")
    private String certification;
    /**
     * 教师简介
     */
    @TableField(value = "introduction")
    private String introduction;
    /**
     * 教师评分
     */
    @TableField(value = "rating")
    private BigDecimal rating;
    /**
     * 课时费用
     */
    @TableField(value = "hourly_rate")
    private BigDecimal hourlyRate;
    /**
     * 最大学生数(默认1表示1对1)
     */
    @TableField(value = "max_students")
    private Integer maxStudents;
    /**
     * 教师状态(0-休息中 1-可预约)
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;
    /**
     * 更新时间
     */
    @TableField(value = "updated_time")
    private Date updatedTime;
    //教师课程表（排课表）
    @TableField(exist = false)
    private List<TeacherSchedule> teacherSchedule;

}